package org.caiotte.service;



import org.caiotte.domain.Department;
import org.caiotte.query.DepartmentQuery;
import org.caiotte.util.PageList;

import java.util.List;

public interface IDepartmentService {
    //新增
    void save(Department department);

    //修改
    void update(Department department);

    //删除
    void removeById(Long id);

    //查询全部
    List<Department> queryAll();

    //查询一条
    Department queryById(Long id);

    //分页+高级查询
    PageList<Department> queryPage(DepartmentQuery departmentQuery);

    //无限极部门树
    List<Department> queryTree();

    //批量删除
    void batchRemove(List<Long> ids);
}
